package zd.code;

import zd.code.bean.Table;
import zd.code.handler.MvcHandler;
import zd.code.handler.TableHandler;

import java.util.List;

public class Generator {

    public static void main(String args[]) throws Exception {
        TableHandler tableHandler = new TableHandler();
        MvcHandler mvcHandler = new MvcHandler();
        List<Table> tableList = tableHandler.getTables();
        for (Table table : tableList) {
            mvcHandler.executeModule(table);
            mvcHandler.executeMapper(table);
            mvcHandler.executeClazzMapper(table);
            mvcHandler.executeServiceMapper(table);
            mvcHandler.executeServiceImplMapper(table);
            mvcHandler.executeControllerMapper(table);
        }
    }
}